//
//  ContentLoader.m
//  Pitfalls01
//
//  Created by codie on 8/4/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "ContentLoader.h"


@implementation ContentLoader

@synthesize dummyContent;

- (void) start {
	
	// let's create a dummy content that will be displayed on 
	// our webView. 
	dummyContent = [[NSString alloc] initWithString:@"<html><body>Hello World!</body></html>"];
	NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(runme) object:nil];
	[thread setName:@"Content Loader thread"];
	[thread start];
}
						
- (void) runme {
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	
	// let us send the notification
	[[NSNotificationCenter defaultCenter] postNotificationName:@"contentLoaded" object:self];

	[pool release];
		
	}

@end
